package fr.auzaiphe.commun.reseau;

import fr.auzaiphe.admin.model.AdminModel;

public class PacketBuyIndice extends Packet
{

	private String nom;
	private String password;
	
	public PacketBuyIndice(String pNom, String pPassword)
	{
		this.nom = pNom;
		this.password = pPassword;
	}
	
	@Override
	public void action()
	{
		if(this.model instanceof AdminModel)
			((AdminModel)this.model).buyIndice(this.nom,this.password);
	}

}
